#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>


int main()
{
  fork();
  while(1){
    printf("Hello process!   pid:%d   ppid:%d\n",getpid(),getppid());
    sleep(1);
  }
  /*
  while(1){
    printf("Hello zzy!  pid:%d  ppid%d\n",getpid(),getppid());
    sleep(1);
  }*/
  //int ret = fork();
  /*if(ret>0)
  {
    printf("Hello zzy!\n");
  }
  else{
    printf("Hello ?!\n");
  }
  sleep(1);*/ 
  return 0;  //退出码
}
